import Header from '../../components/Header.vue';
import SelectTree from '../../components/SelectTree.vue';
import userDetail from './userDetail/userDetail.vue'
import company from './company'
export default {
	name: 'user',
	components: {
		Header,
		SelectTree,
		userDetail,
		company,
	},
	methods: {
		tabClick(tab) {
			if (tab.name === 'userDetail') {
				this.$refs.userDetail.queryPage(1);
			} else if (tab.name === 'company') {
				this.$refs.company.queryPage(1);
			}
		},
	},
	data() {
		return {
			activeName: 'company',
			groupName: ''
		}
	}
}
